package com.victor.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.victor.dao.ShopUserLoginDao;
import com.victor.entity.ShopUserLogin;
import com.victor.service.ShopUserLoginService;

@Service
public class ShopUserLoginServiceImpl implements ShopUserLoginService {

	@Autowired
	private ShopUserLoginDao dao;

	@Override
	public ShopUserLogin shopuserlogin(String account) {
		return dao.shopuserlogin(account);
	}

	@Override
	public ShopUserLogin shopuserloginByShopid(String shopid) {
		return dao.shopuserloginByShopid(shopid);
	}

	@Override
	public boolean updateShopUserPassword(String shopid, String newpassword) {
		return dao.updateShopUserPassword(shopid, newpassword) > 0 ? true : false;
	}
}
